package com.xy.novelweb.service.readers;


import com.github.pagehelper.PageInfo;
import com.xy.novelweb.domain.*;

import java.util.List;

public interface ReaderService {

		 Reader getReaderByName(String nick_name) ;

		int SetUserHeadImg(String nick_name,String imgname);

		int UpdateReaderMsg(Reader reader);

		Reader findBookShelfByName(String nick_name);

		PageInfo<NovelShelf> getBookSelf(String nickName,int currentPage,int pageSize);

		int deletBookFromShelf(String nick_name, int id);

		boolean addBookMark(String nick_name, String book_name, String catlogname);

		int buyOneCatalog(String novelName, String catalogName, Reader reader);

		Float getBalanceByName(String nickName);

		int buyCatalogs(Reader reader, String novelName);

		void recharge(Reader reader, float totalAmount, String time,String remark);

		PageInfo<ReaderRechargeRecord> getRechargeList(String nickName,int currentPage,int pageSize);

		PageInfo<ConsumptionRecord> getConsumptionList(String nickName,int currentPage,int pageSize);

		PageInfo<Comment> getComments(String nickName, int currentPage, int pageSize);

		int addComment(String novelName,String catalog,String readerName, String context, String url);

		boolean checkPassword(String nickName, String oldPassword);

		void updatePassword(String oldPassword, String newPassword, String nickName);
}
